import requests

req = requests.get('https://api.zzzmh.cn/v2/bz/v3/getUrl/a202c44c2075478dbfac39baeb80004611', allow_redirects=False)

print(req.headers['Location'])

data_img = requests.get(req.headers['Location'])

with open('c.重定向.jpg', 'wb') as img:
    img.write(data_img.content)
    print('保存成功')
